package com.drojian.demo1.test6;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;

import com.drojian.demo.R;

public class RootViewGroupActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        EdgeToEdge.enable(this);
        setContentView(R.layout.activity_root_view_group);
        Button back = findViewById(R.id.back);
        back.setOnClickListener(v->finish());
        Button viewGroup1 = findViewById(R.id.viewGroup1);
        viewGroup1.setOnClickListener(v->startActivity(new Intent(RootViewGroupActivity.this,MyViewGroup2Activity.class)));
        Button viewGroup2 = findViewById(R.id.viewGroup2);
        viewGroup2.setOnClickListener(v->startActivity(new Intent(RootViewGroupActivity.this,MyViewGroupActivity.class)));

    }
}